package com.teacher;

import com.review.study.ListOperation;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringUtil {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("spring/bean.xml");
        ListOperation listOperation= (ListOperation)ctx.getBean("bean1");
        listOperation.getNumberOperation().test();
    }
}
